package com.yra.mapper;

import com.yra.domain.Category;
import com.yra.util.PageQueryUtil;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: yrq
 * @Date: Create in 9:06 2019/12/2
 */
@Repository
public interface CategoryMapper {
    List<Category> categoryByLevel(int categoryLevel);

    void categoryInsert(Category category);

    void categoryDelete(int ids);

    List<Category> categoryListPage(PageQueryUtil pageQueryUtil);

    int getTotalCategories(PageQueryUtil pageQueryUtil);

    void categoryUpdate(Category category);

    List<Category> categoryListByLevelAndParentId(int categoryLevel,int parentId);

    Category categoryListByCategoryId(int categoryId);

    void changeProductStatusById(int status, int[] ids);
}
